<?php

namespace App\Http\Controllers\Api\V1\Frontend;

use App\Http\Controllers\BaseController;
use App\Models\About;
use App\Transformers\Frontend\AboutTransformer;

class AboutController extends BaseController
{
    public function index()
    {
        $about = About::first();
        if (!$about) {
            return ['data' => []];
        }
        return $this->response->item($about, new AboutTransformer());
    }
}